#include<bits/stdc++.h>
using namespace std;
long long t,cnt,m;
int f[100005],s[100005];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>t;
    for(int i=0;i<t;i++) cin>>f[i];
    sort(f,f+t);
    for(int i=0;i<t-1;i++){
        for(int j=m+1;j<t;j++){
            if(f[j]>f[i]&&s[i]!=-1&&s[j]==0) {
                m=j;
                s[i]=-1;
                s[j]=1;
                cnt++;
                break;
            }
        }
        if(m==t-1) break;
    }
    cout<<t-cnt;
    return 0;
}
